package com.marisfrolg.scan.dao;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName(value = "t_permission")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PermissionDao {

    @TableId(value = "id", type = IdType.AUTO)
    private long id;

    private String code;

    private String description;

    private String url;

    private String service;

    private int status;

    private String controller;

    public PermissionDao(String code, String description, String url, String service, int status, String controller) {
        this.code = code;
        this.description = description;
        this.url = url;
        this.service = service;
        this.status = status;
        this.controller = controller;
    }
}
